package com.atguigu06.polymorphism.ex1;

public class GeometricObject {
   protected String color;
   protected double weight;

    protected GeometricObject(String color, double weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public  void setColor(String color) {
        this.color = color;
    }

    public  double getweight() {
        return weight;
    }

    public  void setweight(double r) {
        this.weight = r;
    }

    public double getArea(){
        return 0;
    }
}
